int max(int a, int b) {
    if (a > b) {
        return a;
    } else {
        return b;
    }
}

int factorial(int n) {
    int result = 1;
    int i = 1;
    while (i <= n) {
        result = result * i;
        i = i + 1;
    }
    return result;
}

int main() {
    int x = 5;
    int y = 3;
    int maximum = max(x, y);
    int fact = factorial(4);
    return maximum + fact;
}
